
/**
 * desc:匹配弹框中展示系统商品的信息
 * @item {object} 商品的信息
 * 
 */
 import React from 'react';
 import styles from './index.module.less';
 import { formatImg, formatHref, formatAmount, openUrl, renderGoodsName } from '@/utils/utils.jsx';
 import PlatformComponent from '@/components/CommonImg/PlatformComponent';
 
 
 
 export default ({ item={} }) => {
	 const { goodsName, skuName, goodsPrice, spuId, goodsImage } = item;

	 return (
		 <div className={styles.wrap} >
			 <PlatformComponent img={goodsImage} size='84' />
			 <div style={{ display: 'flex', flexDirection: 'column', marginLeft: '8px' }}>
				 <span style={{ whiteSpace: 'pre-wrap' }}>{goodsName} {skuName}</span>
				 <span>价格：<span className="common-color9">{formatAmount(goodsPrice)}</span>元</span>
				 <span>库存: 0 个</span>
				 <span>网店SKU编码：{spuId}</span>
			 </div>
		 </div>
	 )
 } 